<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>新闻管理系统-登录失败</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
	body {
		text-align: center;
		padding-bottom: 0px;
		background-color: #ddeef2;
		margin: 0px;
		padding-left: 0px;
		padding-right: 0px;
		padding-top: 0px
	}
	*{margin:0;padding:0;}
	#father{width:534px;margin:0 auto;padding-top:80px;}
	#top{height:42px;background-image:url(img/error_r1_c1.gif);}
	#main{}
	#main #left{width:43px;height:239px;background-image:url(img/error_r2_c1.gif);float:left}
	#main #center{float:left}
	#main #center #c1{width:479px;height:228px;background-image:url(img/error_r2_c2.gif);position: relative;}
	#main #center #c2{width:479px;height:11px;background-image:url(img/error_r3_c2.gif);}
	#main #right{width:12px;height:239px;background-image:url(img/error_r2_c3.gif);float:left}
	#p{font-size:large;text-align:center;position: absolute; top: 50%; left:25%; transform: translateY(-50%);}
	#error{
		color:red;
		font-size:30px;
		font-weight:400;
	}
	#error2{
		color:blue;
	}
	a {text-decoration: none}
	</style>
  </head>
  
  <body>
   	<div id="father">
   		<div id="top"></div>
	   	<div id="main">
		   	<div id="left"></div>
		   	<div id="center">
			   	<div id="c1">
			   		<p id="p"><span id="error">出错了！</span><br><b>错误原因：
			   		<span id="error2"><%
			   			String error=request.getParameter("error");
			   			    if(error.equals("0"))
						    {
						    	out.print("该用户名不存在！<br>");
						    }
						    else if(error.equals("2"))
						    {
						    	out.print("您输入的密码有误！<br>");
						    }
						    
			   		 %></span></b>
			   		请点击下方链接返回重新登录！<br><a href="index.jsp">返回</a></p>
			   	</div>
			   	<div id="c2"></div>
		   	</div>
		   	<div id="right"></div>
	   	</div>
   	</div>
  </body>
</html>
